package com.lekang.le.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.lekang.le.mapper.NursingPlanLevelBindingMapper;
import com.lekang.le.domain.NursingPlanLevelBinding;
import com.lekang.le.service.INursingPlanLevelBindingService;

/**
 * 护理计划与护理等级中间Service业务层处理
 * 
 * @author yyh
 * @date 2025-10-16
 */
@Service
public class NursingPlanLevelBindingServiceImpl implements INursingPlanLevelBindingService 
{
    @Autowired
    private NursingPlanLevelBindingMapper nursingPlanLevelBindingMapper;

    /**
     * 查询护理计划与护理等级中间
     * 
     * @param id 护理计划与护理等级中间主键
     * @return 护理计划与护理等级中间
     */
    @Override
    public NursingPlanLevelBinding selectNursingPlanLevelBindingById(Long id)
    {
        return nursingPlanLevelBindingMapper.selectNursingPlanLevelBindingById(id);
    }

    /**
     * 查询护理计划与护理等级中间列表
     * 
     * @param nursingPlanLevelBinding 护理计划与护理等级中间
     * @return 护理计划与护理等级中间
     */
    @Override
    public List<NursingPlanLevelBinding> selectNursingPlanLevelBindingList(NursingPlanLevelBinding nursingPlanLevelBinding)
    {
        return nursingPlanLevelBindingMapper.selectNursingPlanLevelBindingList(nursingPlanLevelBinding);
    }

    /**
     * 新增护理计划与护理等级中间
     * 
     * @param nursingPlanLevelBinding 护理计划与护理等级中间
     * @return 结果
     */
    @Override
    public int insertNursingPlanLevelBinding(NursingPlanLevelBinding nursingPlanLevelBinding)
    {
        return nursingPlanLevelBindingMapper.insertNursingPlanLevelBinding(nursingPlanLevelBinding);
    }

    /**
     * 修改护理计划与护理等级中间
     * 
     * @param nursingPlanLevelBinding 护理计划与护理等级中间
     * @return 结果
     */
    @Override
    public int updateNursingPlanLevelBinding(NursingPlanLevelBinding nursingPlanLevelBinding)
    {
        return nursingPlanLevelBindingMapper.updateNursingPlanLevelBinding(nursingPlanLevelBinding);
    }

    /**
     * 批量删除护理计划与护理等级中间
     * 
     * @param ids 需要删除的护理计划与护理等级中间主键
     * @return 结果
     */
    @Override
    public int deleteNursingPlanLevelBindingByIds(Long[] ids)
    {
        return nursingPlanLevelBindingMapper.deleteNursingPlanLevelBindingByIds(ids);
    }

    /**
     * 删除护理计划与护理等级中间信息
     * 
     * @param id 护理计划与护理等级中间主键
     * @return 结果
     */
    @Override
    public int deleteNursingPlanLevelBindingById(Long id)
    {
        return nursingPlanLevelBindingMapper.deleteNursingPlanLevelBindingById(id);
    }
}
